package com._数组Demo1;

import java.util.Random;

public class Test7 {
    public static void main(String[] args) {
        int[] arr = new int[6];
        Random a = new Random();
        int b = 0;
        for (int i = 0; i < arr.length; i++) {
            arr[i] = a.nextInt(100);
            b += arr[i];
        }
        System.out.println(b);
    }

}

